package com.example.admin.controller;

import com.example.admin.service.UserService;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.admin.pojos.AdUser;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.utils.common.AppJwtUtil;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@Api(tags = "登录接口")
@Slf4j
public class LoginController {
    @Autowired
    private UserService userService;

    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody AdUserDto adUserDto){

       return userService.login(adUserDto);

    }











}
